package com.axonactive.yolo.dto;

import java.util.ArrayList;
import java.util.List;

public class FlightWithInstanceId {
	private String instanceId;
	private boolean pendingResults;
	private List<Flight> flights = new ArrayList<>();
	
	public String getInstanceId() {
		return instanceId;
	}
	public void setInstanceId(String instanceId) {
		this.instanceId = instanceId;
	}
	public boolean isPendingResults() {
		return pendingResults;
	}
	public void setPendingResults(boolean pendingResults) {
		this.pendingResults = pendingResults;
	}
	public List<Flight> getFlights() {
		return flights;
	}
	public void setFlights(List<Flight> flights) {
		this.flights = flights;
	}
	
	public void addMoreFlightResult(List<Flight> moreResult) {
		for (int i = 0; i < moreResult.size(); i++) {
			this.flights.add(moreResult.get(i));
		}
	}

}
